package cn.edu.gdut.deepcode.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 画布分享表
 * </p>
 *
 * @author author
 * @since 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("canvas_share")
@ApiModel(value="CanvasShared对象", description="画布分享表")
public class CanvasShare implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "画布分享表id")
//    @TableId(value = "id", type = IdType.AUTO)
//    private Long id;

    @ApiModelProperty(value = "true为分享中,false为未分享")
    private Boolean sharing;

    @ApiModelProperty(value = "画布id")
    @TableId(value ="canvas_id")
    private Long canvasId;

//    @ApiModelProperty(value = "分享码有效期(单位为分钟)")
//    private Long expireTime;

    @ApiModelProperty(value = "逻辑删除字段,0表示未删除,1表示删除")
    @TableField("deleted")
    private Boolean deleted;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime=LocalDateTime.now();


}
